package iut.acy.cut4u.dao;

import java.sql.SQLException;

public abstract class EntiteDAO {

    protected DataBaseManager db;

    public EntiteDAO() {
        db = DataBaseManager.getInstance();

    }

    public abstract int update(Object o) throws SQLException;

    public abstract int delete(Object o, boolean enCascade) throws SQLException;

    public abstract int insert(Object o) throws SQLException;

    /**
     * @return the db
     */
    public DataBaseManager getDb() {
        return db;
    }
    
}
